// ========================================================
// Des：
// Autor：Mr.H 
// CreateTime：2024/04/06 09:54:53
// 版 本：v 1.0
// ========================================================
using System.Collections;
using System.Collections.Generic;
using UnityEditor.SearchService;
using UnityEngine;
using UnityEngine.SceneManagement;

public class QuitPanel : BasePanel<QuitPanel>
{

    public CustomGUIButton btnClose;
    public CustomGUIButton btnSure;
    public CustomGUIButton btnCanel;
    // Start is called before the first frame update
    void Start()
    {
        btnClose.clickEvent += () =>
        {
            HideMe();
        };
        btnSure.clickEvent += () =>
        {
            //回到主界面}
            SceneManager.LoadSceneAsync("BeginScene");
        };
        btnCanel.clickEvent += () =>
        {
            HideMe();
        };

        HideMe();

    }

    public override void HideMe()
    {
        base.HideMe();
        Time.timeScale = 1;
    }
}
